package com.server.orm.db.table;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import com.server.orm.db.TableLongKeyBase;

import java.util.LinkedList;
import java.util.List;

public class TB_user extends TableLongKeyBase {

    @Data
    public static class B_user {
        @JSONField(name = "1")
        private List<Long> roleIds = new LinkedList<>();
    }

    public static TB_user get(long key) {
        return get(TB_user.class, key);
    }

    public TB_user.B_user getData() {
        return Data(TB_user.B_user.class);
    }
}
